window.onload = function(e) {

	var weekshift = readCookie("weekshift");
	document.getElementById("weekshift").value = weekshift ? weekshift : '00';

	var diplome = readCookie("diplome");
	document.getElementById("diplome").value = diplome ? diplome : '00';

  var groupe = readCookie("groupe");
	document.getElementById("groupe").value = ( eval(groupe) != null ) ? groupe : '' ;

	var cssid = readCookie("cssid");
	document.getElementById("cssid").value = cssid ? cssid : '01';

	var blacklist =  readCookie("blacklist");
	document.getElementById("blacklist").value = ( eval(blacklist) != null ) ? blacklist : '' ;
}

window.onunload = function(e) {

	createCookie("weekshift", document.getElementById("weekshift").value, 365);
	createCookie("diplome", document.getElementById("diplome").value, 365);
	createCookie("groupe", document.getElementById("groupe").value, 365);
	createCookie("cssid", document.getElementById("cssid").value, 365);
	createCookie("blacklist", document.getElementById("blacklist").value, 365);
}
